package 抽象类;

public class 测试类 {
    public static void main(String[] args) {
        Frog frog = new Frog("小青",1);
        frog.eat();
        frog.swim();

        System.out.println("-------------------------------");
        Dog dog = new Dog("大黄",3);
        dog.eat();
        dog.drink();

    }
}
